home *** CD-ROM | disk | FTP | other *** search
- IF EXIST big.txt GOTO GOTBIG
- ECHO Creating test file...
- copy test.txt+test.txt big.txt >nul
- copy big.txt+big.txt big2.txt >nul
- copy big2.txt+big2.txt big.txt >nul
- copy big.txt+big.txt big2.txt >nul
- copy big2.txt+big2.txt big.txt >nul
- copy big.txt+big.txt big2.txt >nul
- copy big2.txt+big2.txt big.txt >nul
- copy big.txt+big.txt big2.txt >nul
- copy big2.txt+big2.txt big.txt >nul
- copy big2.txt %1:\ >nul
- IF EXIST %1:\%4\nul GOTO HVTMP
- ECHO Setting up %1:\%4 directory
- mkdir %1:\%4
- :HVTMP
- copy big.txt %1:\big3.txt >nul
- IF EXIST %1:\temp2\nul GOTO HVTMP2
- ECHO Setting up %1:\TEMP2 directory
- mkdir %1:\temp2
- :HVTMP2
- erase %1:\big2.txt
- erase %1:\big3.txt
- copy big.txt+big.txt big2.txt >nul
- copy big2.txt big.txt >nul
- erase big2.txt
- GOTO RESETTEMP
- :GOTBIG
- IF EXIST %1:\%4\nul GOTO GTMP
- ECHO Setting up %1:\%4 directory
- copy test.txt+test.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt big3.txt >nul
- copy big3.txt+big3.txt %1:\big2.txt >nul
- erase big2.txt
- erase big3.txt
- mkdir %1:\%4
- :GTMP
- IF EXIST %1:\temp2\nul GOTO GTMP2
- ECHO Setting up %1:\TEMP2 directory
- copy test.txt+test.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt big3.txt >nul
- copy big3.txt+big3.txt big2.txt >nul
- copy big2.txt+big2.txt %1:\big3.txt >nul
- erase big2.txt
- erase big3.txt
- mkdir %1:\temp2
- erase %1:\big3.txt
- :GTMP2
- IF EXIST %1:\big2.txt erase %1:\big2.txt
- :RESETTEMP
- IF EXIST %1:\%4\test1.txt erase %1:\%4\test?.txt
- IF EXIST %1:\temp2\big.txt erase %1:\temp2\big.txt
- IF %3X==NX GOTO NOJD
- IF %3X==nX GOTO NOJD
- IF %3X==ANX GOTO NOJD
- IF %3X==anX GOTO NOJD
- JD /* /Monitor=%1 /TargetDirectory=%4
- IF ERRORLEVEL 13 GOTO NOTEMP
- IF ERRORLEVEL 12 GOTO NOMONITOR
- IF ERRORLEVEL 9 GOTO CACHED
- IF ERRORLEVEL 4 GOTO FAILURE
- IF ERRORLEVEL 3 GOTO ALREADY
- IF ERRORLEVEL 1 GOTO FAILURE
- :ALREADY
- ECHO ----------------------------------------------------
- ECHO Now monitoring drive %1
- GOTO LOADCACH
- :NOJD
- ECHO You have requested that no monitoring be performed.
- :LOADCACH
- ECHO ----------------------------------------------------
- IF ERRORLEVEL 3 GOTO SKIPLOAD
- IF %2==A GOTO USESD
- IF %2==a GOTO USESD
- IF %2==B GOTO USENC
- IF %2==b GOTO USENC
- IF %2==C GOTO USESC
- IF %2==c GOTO USESC
- IF %2==D GOTO USEPCC
- IF %2==d GOTO USEPCC
- IF %2==E GOTO USESPCK
- IF %2==e GOTO USESPCK
- GOTO NOCACHE
- :USESD
- ECHO You have requested that SmartDrive be loaded.
- ECHO ----------------------------------------------------
- smartdrv a+ b+
- GOTO CACHELOADED
- :USENC
- ECHO You have requested that Norton Cache be loaded.
- ECHO ----------------------------------------------------
- ncache2 INSTALL /a /i
- GOTO CACHELOADED
- :USESC
- ECHO You have requested that Speedcache+ be loaded.
- ECHO ----------------------------------------------------
- scplus install /a /m
- GOTO CACHELOADED
- :USEPCC
- ECHO You have requested that PC-Cache be loaded.
- ECHO ----------------------------------------------------
- pc-cache /sizext:1024 %1:w
- GOTO CACHELOADED
- :USESPCK
- ECHO You have requested that Super PC-Kwik be loaded.
- ECHO ----------------------------------------------------
- super /FDSupport=AdvancedReadWrite
- GOTO CACHELOADED
- :NOCACHE
- ECHO You have not specified a cache so none was loaded.
- ECHO ----------------------------------------------------
- GOTO STARTTEST
- :SKIPLOAD
- ECHO Loading of a cache was skipped.
- ECHO ----------------------------------------------------
- GOTO STARTTEST
- :CACHELOADED
- GOTO STARTTEST
- :FAILURE
- ECHO Jeopardy Detection program failed to load.
- GOTO DONE
- :CACHED
- ECHO A cache has already been loaded. Please unload it and try again.
- GOTO DONE
- :NOMONITOR
- ECHO Cannot monitor drive %1
- GOTO DONE
- :NOTEMP
- ECHO No %4 directory in root directory of drive %1
- GOTO DONE
- :STARTTEST
- IF %3X==AX GOTO USEAPP
- IF %3X==aX GOTO USEAPP
- IF %3X==ANX GOTO USEAPP
- IF %3X==anX GOTO USEAPP
- ECHO A test will be performed by copying files using the COPY command.
- PAUSE
- @ECHO ON
- copy test.txt %1:\%4\test1.txt
- copy test.txt %1:\%4\test2.txt
- copy test.txt %1:\%4\test3.txt
- copy test.txt %1:\%4\test4.txt
- copy test.txt %1:\%4\test5.txt
- copy test.txt %1:\%4\test6.txt
- copy test.txt %1:\%4\test7.txt
- copy test.txt %1:\%4\test8.txt
- copy big.txt %1:\TEMP2
- @ECHO OFF
- ECHO To erase the files just copied -- after disk I/O is complete --
- PAUSE
- ECHO Note: DOS itself may produce a brief jeopardy period when it erases files.
- @ECHO ON
- erase %1:\%4\test?.txt
- erase %1:\temp2\big.txt
- @ECHO OFF
- GOTO DONE
- :USEAPP
- ECHO A test will be performed by copying using a sample application.
- PAUSE
- appcopy %1 %4
- ECHO Note: DOS itself may produce a brief jeopardy period when it erases files.
- @ECHO ON
- erase %1:\%4\test?.txt
- erase %1:\temp2\big.txt
- :DONE